﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tetris
{
    abstract class Figures
    {
        public int Xfigure { get; set; }
        public int Yfigure { get; set; }
        public char figureSymbol = '@';
        public ConsoleColor figurecolor;

        public Figures(int x, int y)
        {
            Xfigure = x;
            Yfigure = y;
        }

        public void MoveUp()
        {
            Yfigure -= 1;
        }

        public void MoveDown()
        {
            Yfigure += 1;
        }

        public void MoveLeft()
        {
            Xfigure -= 1;
        }

        public void MoveRight()
        {
            Xfigure += 1;
        }

        //virtual public void FigureRotate(FigurePosition nextPosition)
        //{
        //}

    }

    class Cube : Figures
    {
        public Cube(int x, int y) : base(x, y)
        {
            figurecolor = ConsoleColor.Magenta;
        }
    }

    class Piptik : Figures
    {
        public Piptik(int x, int y) : base(x, y)
        {
            figurecolor = ConsoleColor.Red;
        }
    }

    class Horse : Figures
    {
        public Horse(int x, int y) : base(x, y)
        {
            figurecolor = ConsoleColor.Green;
        }
    }

    class Twos : Figures
    {
        public Twos(int x, int y) : base(x, y)
        {
            figurecolor = ConsoleColor.Blue;
        }
    }

    class Stick : Figures
    {
        public Stick(int x, int y) : base(x, y)
        {
            figurecolor = ConsoleColor.White;
        }
    }

}
